/* 蓝色主题变量 */
:root {
  --primary-blue: #1890ff;
  --light-blue: #e6f7ff;
  --dark-blue: #0050b3;
  --nav-bg: #1890ff;
  --card-bg: #f0f9ff;
  --text-color: #333;
}

/* 强制全局背景样式 - 覆盖所有内容 */
html body {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  
  &::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('~@/assets/background.png') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.1;
    z-index: 9999; /* 确保在最顶层 */
    pointer-events: none; /* 不阻挡交互 */
  }
}

/* 导航栏样式 */
.navbar {
  background-color: var(--nav-bg);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 工作台专属布局 */
.dashboard-container {
  position: relative;
  min-height: 100vh;
  padding: 20px;
  z-index: 1;
  display: grid;
  grid-template-areas:
    "top-left top-right"
    "bottom-left side";
  grid-template-columns: 1fr auto;
  grid-gap: 20px;
  
  .top-left {
    grid-area: top-left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .top-right {
    grid-area: top-right;
  }
  
  .bottom-left {
    grid-area: bottom-left;
  }
  
  .side {
    grid-area: side;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .dashboard-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

/* 卡片样式 */
.dashboard-card {
  background: white;
  border-left: 4px solid var(--primary-blue);
  padding: 15px;
  border-radius: 4px;
  
  .card-title {
    color: var(--dark-blue);
    margin-bottom: 10px;
  }
  
  .card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* 按钮样式 */
button, .btn, .action-btn, .el-button {
  &[type="button"], &[type="submit"] {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    
    &:hover {
      background: var(--dark-blue);
      box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
    }
    
    &:disabled {
      background: #d9d9d9;
      cursor: not-allowed;
    }
    
    /* 次要按钮 */
    &.secondary {
      background: white;
      color: var(--primary-blue);
      border: 1px solid var(--primary-blue);
      
      &:hover {
        color: var(--dark-blue);
        border-color: var(--dark-blue);
      }
    }
    
    /* 危险操作按钮 */
    &.danger {
      background: #ff4d4f;
      &:hover {
        background: #cf1322;
      }
    }
  }
}
